﻿using Microsoft.Extensions.Options;
using System.Threading.Tasks;

namespace TimServerSDK.Core
{
    public class TimServerOptionsFun : ITimServerOptionsFun
    {
        private readonly TimServerOptions _options;
        public TimServerOptionsFun(IOptions<TimServerOptions> options)
        {
            _options = options.Value;
        }

        public Task<TimServerOptions> GetOptionsAsync()
        {
            return Task.FromResult(_options);
        }
    }
}
